package com.zdl.netutils.http

import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response

/**
 * <p>文件描述</p>
 * 用户名:yema
 * 时间:2019/10/29   9:32
 */
open class Httpinterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request: Request = chain.request()
        val builder1: Request.Builder = request.newBuilder()
        val build: Request = builder1.addHeader("apikey", "ac7c302dc489a69082cbee6********").build()
        return chain.proceed(build)
    }


}